<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智汇考途登录系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f7f7f7;
            color: #2c3e50;
            font-family: 'Arial', sans-serif;
        }
        .container {
            max-width: 400px;
            margin-top: 50px;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            margin-bottom: 30px;
            font-size: 24px;
            color: #2c3e50;
            text-align: center; /* 标题居中 */
            font-weight: bold; /* 标题加粗 */
        }
        .form-label {
            font-weight: bold;
        }
        .form-control {
            border-radius: 5px;
            padding: 10px;
            background-color: #ffffff;
            border: 1px solid #dcdcdc;
        }
        .btn {
            background-color: #3498db;
            color: #ffffff;
            border-radius: 5px;
            padding: 10px;
            font-weight: bold;
            width: 100%; /* 按钮宽度设为100% */
            margin-bottom: 15px; /* 给按钮添加底部间距 */
        }
        .btn:hover {
            background-color: #2980b9;
        }
        .text-center a {
            color: #3498db;
            text-decoration: none;
        }
        .text-center a:hover {
            text-decoration: underline;
        }
        .btn-group {
            display: flex;
            justify-content: space-between;
            gap: 20px; /* 增加按钮之间的间距 */
        }
        .btn-group a {
            width: 48%; /* 两个按钮各占48%的宽度 */
            background-color: #6c757d; /* 按钮颜色设置为灰色 */
            color: white;
            text-align: center;
            padding: 10px;
            border-radius: 5px;
            text-decoration: none;
        }
        .btn-group a:hover {
            background-color: #5a6268; /* 按钮悬停颜色变深 */
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>智汇考途登录系统</h1>
        <form action="/" method="POST">
            <div class="form-group">
                <label for="user_type" class="form-label">选择身份:</label>
                <select class="form-control" name="user_type" id="user_type">
                    <option value="teacher">老师</option>
                    <option value="student">学生</option>
                    <option value="parent">家长</option>
                </select>
            </div>
            <div class="form-group">
                <label for="username" class="form-label">用户名:</label>
                <input type="text" id="username" name="username" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="password" class="form-label">密码:</label>
                <input type="password" id="password" name="password" class="form-control" required>
            </div>
            <button type="submit" name="login" class="btn">登录</button>
        </form>
        <div class="btn-group mt-3">
            <a href="/register" class="btn">注册</a>
            <a href="/forgot_password" class="btn">忘记密码</a>
        </div>
    </div>
</body>
</html>
